home *** CD-ROM | disk | FTP | other *** search
/ Workbench Add-On / Workbench Add-On - Volume 1.iso / BBS-Archive / Comm / AmiTCP30b2.lha / src / compile next >
AmigaDOS Script File  |  1994-03-10  |  3KB  |  128 lines

  1. .key DEST,INCLUDE/K,NETLIB/K,INSTALL/S,ALL/S,APPL/S,AMITCP/S,DEVS/S,DEVTOOLS/S,LIBS/S,UTIL/S,TARGET/K/F
  2. ;;; $Id: compile,v 1.9 1994/03/10 17:39:04 jraja Exp $
  3. ;;;
  4. ;;; Compile AmiTCP distribution with SAS C
  5. ;;;
  6. ;;; Copyright (c) 1993 AmiTCP-Group, <AmiTCP-Group@hut.fi>
  7. ;;;                    Helsinki University of Technology, Finland.
  8. ;;;
  9. ;;; Created      : Thu Oct 14 01:59:00 1993 ppessi
  10. ;;; Last modified: Fri Feb 25 01:06:47 1994 ppessi
  11. ;;;
  12. ;;; $Log: compile,v $
  13. ;;; Revision 1.9  1994/03/10  17:39:04  jraja
  14. ;;; Added compilation of the devtools.
  15. ;;;
  16. ;;; Revision 1.8  1994/02/25  15:13:32  ppessi
  17. ;;; Added libs subdirectory
  18. ;;;
  19. ;;; Revision 1.7  1994/02/15  20:50:26  jraja
  20. ;;; Fixed few typos.
  21. ;;;
  22. ;;; Revision 1.6  1993/11/19  02:11:10  ppessi
  23. ;;; quit -> echo
  24. ;;;
  25. ;;; Revision 1.5  1993/11/17  12:58:02  ppessi
  26. ;;; Implemented the APPL, AMITCP, UTIL and DEVS flags.
  27. ;;; Removed netlib compilation
  28. ;;;
  29. ;;; Revision 1.4  1993/11/15  12:06:40  ppessi
  30. ;;; Added TARGET/K, now really *using* INSTALL/S
  31. ;;;
  32. ;;; Revision 1.3  1993/10/23  01:19:06  ppessi
  33. ;;; Added -k flag to smake
  34. ;;;
  35. ;;; Revision 1.2  1993/10/14  00:02:04  ppessi
  36. ;;; Added devs and appl directories, renamed src to amitcp.
  37. ;;; Added install targets, DEST and INCLUDE directories.
  38. ;;;
  39. .bra {
  40. .ket }
  41. .def DEST "AmiTCP:"
  42.  
  43. If NOT {NETLIB$IsNotGiven} EQ IsNotGiven
  44.     If Exists {NETLIB}
  45.     Assign netlib: {NETLIB}
  46.     Endif
  47. Else
  48.     Assign Netlib: exists > nil:
  49.     If WARN 
  50.     echo "The NETLIB: does not exist"
  51.     echo "Can't continue"
  52.     quit
  53.     Endif
  54. Endif
  55.  
  56. If NOT {INCLUDE$IsNotGiven} EQ IsNotGiven
  57.     If Exists "{INCLUDE}" 
  58.     assign netinclude: {INCLUDE}
  59.     ENDIF
  60. Else
  61.     Assign Netinclude: exists > nil:
  62.     If WARN 
  63.     echo "The NETINCLUDE: does not exist"
  64.     echo "Can't continue"
  65.     quit
  66.     Endif
  67. ENDIF
  68.  
  69. Set APPL={APPL$X}
  70. Set AMITCP={AMITCP$X}
  71. Set DEVS={DEVS$X}
  72. Set DEVTOOLS={DEVTOOLS$X}
  73. Set LIBS={LIBS$X}
  74. Set UTIL={UTIL$X}
  75.  
  76. If NOT {ALL$X} EQ X 
  77.     Set APPL=APPL
  78.     Set AMITCP=AMITCP
  79.     Set DEVS=DEVS
  80.     Set DEVTOOLS=DEVTOOLS
  81.     Set LIBS=LIBS
  82.     Set UTIL=UTIL
  83.     echo Note: examples and docs will not be built.
  84. Endif
  85.  
  86. IF $DEVTOOLS EQ DEVTOOLS
  87.     echo Make development tools
  88.     cd devtools
  89.     smake -k DEST={DEST} {INSTALL} {TARGET}
  90.     cd /
  91. Endif
  92.     
  93. IF $AMITCP EQ AMITCP
  94.     echo Make protocol stack
  95.     cd amitcp
  96.     smake gst
  97.     smake -k DEST={DEST} {INSTALL} {TARGET}
  98.     cd /
  99. Endif
  100.  
  101. If $LIBS EQ LIBS
  102.     echo Make support libraries
  103.     cd libs
  104.     smake -k DEST={DEST} {INSTALL} {TARGET}
  105.     cd /
  106. Endif
  107.  
  108. If $DEVS EQ DEVS
  109.     echo Make network devices
  110.     cd devs
  111.     smake -k DEST={DEST} {INSTALL} {TARGET}
  112.     cd /
  113. Endif
  114.  
  115. IF $APPL EQ APPL
  116.     echo Make applications
  117.     cd appl
  118.     smake -k DEST={DEST} {INSTALL} {TARGET}
  119.     cd /
  120. Endif
  121.  
  122. If $UTIL EQ UTIL
  123.     echo Make network utilities
  124.     cd util
  125.     smake -k DEST={DEST} {INSTALL} {TARGET}
  126.     cd /
  127. Endif
  128.